import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import articleDetail from "../views/articleDetail.vue"
import tagArticle from "../views/tagArticle.vue"

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/article-detail',
      name: 'article-detail',
      component: articleDetail
    },
    {
      path: '/tag-article',
      name: 'tag-article',
      component: tagArticle
    },
  ]
})

export default router
